package com.copsoftware.db;

import org.hibernate.Session;

import com.copsoftware.hibernate.cfg.HibernateUtils;

public class DAOSession {
	
	protected Session  session;
	
	public Session getSession() {
		if (session==null)
			session = HibernateUtils.getSessionFactory().getCurrentSession();		
		return session;
	}

	public  void setSession(Session session) {
		this.session = session;
	}
	
	
}
